package com.hae.shop.common.util;

/**
 * 雪花id生成器工具
 */
public class SnowflakeIdUtil {
    private static SnowflakeIdWorker idWorker;
    static {
        idWorker = new SnowflakeIdWorker(1, 1);
    }

    public static Long nextId() {
        return idWorker.nextId();
    }

}
